#define _CRT_SECURE_NO_WARNINGS 1
int is_leap_year(int year)
{
	if ((year % 400 == 0) || (year % 4 == 0) && (year % 100 != 0))
	{
		return 1;
	}
	else
		return 0;
}

int IF(int year, int month)
{
	int day[13] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };
	if (is_leap_year(year))
		day[2]++;
	return day[month];
}
